package javaClassExercise;

/**
 * Created by lomo on 2018/7/28.
 */
public class abstractStaticMethod extends staticAbstractClass{

    abstractStaticMethod() {
        System.out.println("abstractStaticMethod被调用了");
    }

    void printSth(String s) {
        System.out.println(s);
    }

    public static void main(String ...args) {
        System.out.println("Lomo 168 aa aa...");
        abstractStaticMethod asm = new abstractStaticMethod();
        asm.printSth("lomo178");
    }
}

abstract class staticAbstractClass {
    staticAbstractClass() {
        System.out.println("抽象类的构造函数被调用了...");
    }

    abstract void printSth(String s);

    public static void main(String[] args) {
        System.out.println("包含main方法的抽象类");
    }
}
